import axios from 'axios';

export default {
    index(params: any){
        return axios.get('/admin/role',{
            params:params,
        });
    },

    show(id: number){
        return axios.get(`/admin/role/${id}`);
    },

    store(params: any){
        return axios.post('/admin/role',params);
    },

    update(params: any){
        return axios.put('/admin/role',params);
    },

    delete(id: number){
        return axios.delete(`/admin/role/${id}`);
    }
}
